aux_source_directory(. DIR_SOURCE_THREAD)

#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-pthread") #多线程

add_library(thread ${DIR_SOURCE_THREAD}) 

TARGET_LINK_LIBRARIES(thread machine mysql)
#TARGET_LINK_LIBRARIES(${PROJECT_NAME} pthread)